print 1 to n numbers using while loop